<?$this->load->view('admin/header.tpl');?>
	<div id="wrap" class="lw clearfix ab">
		<?if($success):?><div class="success"><?=$success?></div><?endif?>
		<div class="form-error"><?=$error?></div>
		<h2 class="menu2 clearfix">
			<span>用户列表</span>
		</h2>
		<?if($m):?>
		<table class="discuz">
			<tr>
				<th class="table-left">注册ID</th>
				<th>注册昵称</th>
				<th>注册邮箱</th>
			</tr>
			<?foreach($m as $t):?>
			<tr>
				<td class="table-left"><a href="/news/show/<?=$t->id?>"><?=$t->id?></a></td>
				<td><?=$t->name?></td>
				<td><?=$t->email?></td>
			</tr>
			<?endforeach?>
		</table>
		<div class="email">
			<h2>复制下面的邮箱地址，可方便给他们群发邮件(CTRL+C,CTRL+V)</h2>
			<p>一个页面最多只显示一百个用户</p>
			<textarea><?foreach($m as $t):?><?=$t->email?>,<?endforeach?></textarea>
		</div>
		<p>共<?=$num?>个用户</p>
		<?else:?>
			<p>还没有人注册</p>
		<?endif?>

		<?php echo $page;?>
	
	</div>
<?$this->load->view('footer.tpl');?>